import request from '@/utils/request'

// 查询库区信息列表
export function listMdWhAreaInfo(query) {
  return request({
    url: '/meter/mdWhAreaInfo/list',
    method: 'get',
    params: query
  })
}

// 查询库区信息详细
export function getMdWhAreaInfo(whAreaId) {
  return request({
    url: '/meter/mdWhAreaInfo/' + whAreaId,
    method: 'get'
  })
}

// 新增库区信息
export function addMdWhAreaInfo(data) {
  return request({
    url: '/meter/mdWhAreaInfo',
    method: 'post',
    data: data
  })
}

// 修改库区信息
export function updateMdWhAreaInfo(data) {
  return request({
    url: '/meter/mdWhAreaInfo',
    method: 'put',
    data: data
  })
}

// 删除库区信息
export function delMdWhAreaInfo(whAreaId) {
  return request({
    url: '/meter/mdWhAreaInfo/' + whAreaId,
    method: 'delete'
  })
}
